package com.springboot.chatroom.service;


import com.springboot.chatroom.mapper.FriendMapper;
import com.springboot.chatroom.model.Friend;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: jiume
 * Date: 2025-04-10
 * Time: 17:37
 */
@Service
public class FriendService {

    @Resource
    private FriendMapper friendMapper;

    public List<Friend> getFriendList(Integer userId) {
        return friendMapper.selectFriendList(userId);
    }
}
